# 写代码，有如下字典，请按要求实现每个功能
# dic = {'k1': "v1", "k2": "v2", "k3": [11,22,33]}
# a. 请循环输出所有的key
# b. 请循环输出所有的value
# c. 请循环输出所有的key 和value
# d. 请在字典中添加一个键值对，"k4": "v4"，输出添加后的字典
# e. 请在修改字典中 “k1” 对应的值为 “itsouce”，输出修改后的字典
dic = {'k1': "v1", "k2": "v2", "k3": [11,22,33]}
print(dic.keys())#a
print(dic.values())#b
print(dic.items())#c
dic['k4'] = 'v4'#d
print(dic)
dic['k1'] = 'itsource'#e
print(dic)